package com.hmall.mapper;

import com.hmall.model.SysUserRole;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserRoleMapper extends MyMapper<SysUserRole> {
    SysUserRole selectRole(@Param("userId") Integer userId);

    void updateStatus(@Param("userId") Integer userId, @Param("status") int status);

   int deleteByUserId(@Param("userId") Integer userId);
}